var map = {
  "name":"张三",
  "age":22,
  "work":"上班族",
  "sex":"男",
};

for(var item in map.keys){
  print(item);
}

for(var item in map.values){
  print(item);
}

map.forEach((key, value) {
  print("$key---$value");
});

var newList = map.values.where((element) => element==22).toList();
print(newList);

//判断map的值是否有张三，返回值bool
var checkAny = map.values.any((element) => element=="张三");
print(checkAny);

//判断map的值是否全部为张三，返回值bool
var checkEvery = map.values.every((element) => element=="张三");
print(checkEvery);